home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / S3D_2E1.exe / Shout3d_runtime / codebase / applets / WalkApplet.java < prev    next >
Text File  |  2000-11-09  |  1KB  |  61 lines

  1. /**    
  2.     Company:        Eyematic Interfaces
  3.     Project:        Shout3D 2.0 Sample Code
  4.     Class:            Viewer
  5.     Date:            April 26, 1999
  6.     Description:    Class for Viewer
  7.     (C) Copyright Eyematic Interfaces, Inc. - 1997-2000 - All rights reserved
  8.  */
  9.  
  10. package applets;
  11.  
  12. import shout3d.*;
  13.  
  14. /**
  15.  * Shout3D viewer 
  16.  * 
  17.  * @author Jim Stewartson
  18.  * @author Paul Isaacs
  19.  * @author Dave Westwood
  20.  */
  21.  
  22. public class WalkApplet extends Shout3DApplet {
  23.  
  24.     public void initShout3DPanel(){
  25.         panel = new WalkPanel(this);
  26.     }
  27.  
  28.     /**
  29.      * call this whenever you want to go reset the camera.
  30.      * Result is that camera goes back to its initial orientation and position.
  31.      */
  32.     public void resetCamera(){
  33.         ((WalkPanel)panel).resetCamera();
  34.     }    
  35.     
  36.     /**
  37.      * Get the forward drag speed
  38.      */
  39.     public float getForwardDragSpeed(){
  40.         return ((WalkPanel)panel).getForwardDragSpeed();
  41.     }
  42.     /**
  43.      * Set the forward drag speed
  44.      */
  45.     public void setForwardDragSpeed(float newSpeed){
  46.         ((WalkPanel)panel).setForwardDragSpeed(newSpeed);
  47.     }
  48.     /**
  49.      * Get the heading drag speed
  50.      */
  51.     public float getRotateDragSpeed(){
  52.         return ((WalkPanel)panel).getRotateDragSpeed();
  53.     }
  54.     /**
  55.      * Set the heading drag speed
  56.      */
  57.     public void setRotateDragSpeed(float newSpeed){
  58.         ((WalkPanel)panel).setRotateDragSpeed(newSpeed);
  59.     }
  60. }
  61.